iShell Help
Tribeworks > iShell > Help >
  Integer and its Functions
   

An integer stores a whole number either positive or negative. It cannot have a decimal place.

Set Integer Functions These are used with the Set command.
  • Absolute: Absolute returns the absolute value of the input argument. The absolute value is always a positive value of the number. It will never be negative.
  • Add: Adds the value of the two arguments.
  • Divide By: Divides the value on the left by the value on the right.
  • Maximum: Returns the highest of the two values.
  • Minimum: Returns the lowest of the two values.
  • Modulo: Returns the modulo value which is the value of the remainder after the number on the left is divided by the number on the right.
  • Multiply: Multiplies the two values.
  • Random: Sets a random value between the Min and Max seed values.
  • Subtract: Subtracts the value on the right from the value on the left.
  • Toggle: Sets the value of the input to its opposite positive or negative value.
  • Value: Value sets a value to the variable
Get Integer Functions These are used with the Get command.
  • Value: Value sets a value to the variable.
Comparison Integer Functions These are used with the If, Else If, or While commands.
  • Different: The two values are not equal.
  • Equal: The two values are the same.
  • Less: The first value is less than the second. 2 is less than 3.
  • Less or Equal: The first value is not more than the second.
  • More: The first value is more than the second. 3 is more than 2.
  • More or Equal: The first value is not less than the second.